@use 'keybinds';

.powercord-account {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;

  > div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &.linking {
      justify-content: initial;

      span > span > span {
        background-color: var(--header-secondary);
      }
    }
  }

  &-list {
    justify-content: space-between;

    > div {
      display: flex;
      flex-direction: column;
    }

    &-account {
      display: flex;
      align-items: center;
      margin-bottom: 10px;

      img, svg {
        width: 22px;
        height: 22px;
        margin-right: 10px;
      }

      &:first-child {
        margin-top: 5px;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  &-item {
    margin-right: 25px;
  }

  span[class^='spinner-'] {
    margin-right: 10px;
  }
}

.powercord-passphrase {
  &-modal div[class^='divider-'] {
    display: none;
  }

  &-desc {
    margin-top: 10px;
    margin-bottom: 20px;

    .space {
      margin-top: 10px;
    }
  }
}


// Icon in user settings
.powercord-pc-icon {
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -4px;
    width: 32px;
    height: 20px;
    opacity: .6;
    background: url("") no-repeat;
    background-size: contain;
  }

  &:hover::before {
    opacity: 1;
  }

  svg {
    border-right: 1px var(--background-modifier-accent) solid;
    padding-right: 8px;

    path {
      display: none;
    }
  }
}

.powercord-settings{
  &-item {
    &-title {
      display: flex;
      cursor: pointer;
      align-items: center;

      svg {
        width: 28px;
        height: 28px;
        transition: transform .3s;
        margin-right: 15px;

        + div > div[class*='modeDefault-'] {
          cursor: pointer;
        }

        &.opened {
          transform: rotate(90deg);
        }
      }

      > div {
        flex: 1;
      }
    }

    &-inner {
      margin-top: 20px;
    }

    &.powercord-category &-inner {
      margin-left: 12px;
      border-left: 1px var(--background-modifier-accent) solid;
      padding-left: 33px;
    }

    .description-3_Ncsb {
      white-space: pre-line;
      strong strong {
        color: #f04747;
      }
    }
  }

  &-error {
    h2 {
      color: var(--header-primary);
      margin-bottom: 20px;
      font-size: 16px;
      line-height: 20px;
      font-weight: 600;
      text-transform: uppercase;
    }

    div {
      margin-bottom: 10px;
    }

    code {
      white-space: pre-wrap;
      margin-bottom: 25px;
      display: block;
      padding: 0 20px;
    }
  }
}

// Colors
.theme-light {
  .powercord-account {
    img {
      filter: brightness(0);
    }
  }

  .powercord-pc-icon {
    filter: brightness(0.6);
  }
}

// funny
.__powercord-no-settings-animation {
  .layer-86YKbF {
    opacity: 1 !important;
    transform: none !important;
  }

  .layer-86YKbF + .layer-86YKbF {
    display: none;
  }
}
